package daos;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userName;
	private String password;
	private Short isAdmin;
	private String idCard;
	private String email;
	private String phoneNo;
	private String address;
	private Set newses = new HashSet(0);
	private Set comments = new HashSet(0);
	private Set orderses = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userName, String password, Short isAdmin, String idCard,
			String email) {
		this.userName = userName;
		this.password = password;
		this.isAdmin = isAdmin;
		this.idCard = idCard;
		this.email = email;
	}

	/** full constructor */
	public User(String userName, String password, Short isAdmin, String idCard,
			String email, String phoneNo, String address, Set newses,
			Set comments, Set orderses) {
		this.userName = userName;
		this.password = password;
		this.isAdmin = isAdmin;
		this.idCard = idCard;
		this.email = email;
		this.phoneNo = phoneNo;
		this.address = address;
		this.newses = newses;
		this.comments = comments;
		this.orderses = orderses;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Short getIsAdmin() {
		return this.isAdmin;
	}

	public void setIsAdmin(Short isAdmin) {
		this.isAdmin = isAdmin;
	}

	public String getIdCard() {
		return this.idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Set getNewses() {
		return this.newses;
	}

	public void setNewses(Set newses) {
		this.newses = newses;
	}

	public Set getComments() {
		return this.comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

	public Set getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set orderses) {
		this.orderses = orderses;
	}

}